
//程序入口函数
def 整型 入口函数_窗口() 
	文本A server = A"127.0.0.1"
	文本A user =A"userName"
	文本A password=A"密码"
	文本A database=A"数据库名称"
	字符型A sql[1024]=A"select * from  data_table"
	MYSQL* m_pConn=mysql_init(NULL)
	整型 err=mysql_set_character_set(m_pConn, A"utf8")
	
	字符型A reconnect = 1
	mysql_options(m_pConn, MYSQL_OPT_RECONNECT, &reconnect)
	
	如果 (!mysql_real_connect(m_pConn,server,user,password,database,0,NULL,0)) 
		调试输出(mysql_error(m_pConn))
	否则
		调试输出("链接成功")
	返回 0
